@selectors: info, warning, danger, success;

.type (@type) when (@type = info) {
  color: #ffa919 !important;
}
.type (@type) when (@type = warning) {
  color: #ff3838 !important;
}
.type (@type) when (@type = danger) {
  color: #ff3838 !important;
}
.type (@type) when (@type = success) {
  color: #009639 !important;
}

each(@selectors, {
    .ydt-common-modal-@{value}-wrapper{
        top: 50%;
        transform: translateY(-50%);
    }
    .ydt-common-modal-@{value}-wrapper .ant-modal-body{
        padding: 34px 24px 24px;

    }
    .ydt-common-modal-@{value}-wrapper .anticon{
        .type(@value);
        display: block;
        width: 40px;
        font-size: 40px;
        margin: 0 auto;
        float: unset;
    }
    .ydt-common-modal-@{value}-wrapper .ant-modal-confirm-title{
        font-size: 20px;
        font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
        font-weight: bold;
        line-height: 26px;
        text-align: center;
        margin-top: 10px;
        .type(@value);
    }

    .ydt-common-modal-@{value}-wrapper .ant-modal-confirm-content{
        font-size: 16px;
        font-family: MicrosoftYaHei;
        color: #222222;
        line-height: 21px;
        text-align: center;
        margin-left: 0 !important;
    }

    .ydt-common-modal-@{value}-wrapper .ant-modal-confirm-content-number{
        font-size: 16px;
        font-family: MicrosoftYaHei;
        line-height: 21px;
        text-align: center;
        margin-left: 4px;
        margin-right: 4px;
        .type(@value);
    }

    .ydt-common-modal-@{value}-wrapper  .ant-modal-confirm-btns{
        text-align: center;
        width: 100%;
    }
});

.ant-modal-confirm {
  width: 520px !important;
}
.ant-modal-confirm .ant-modal-body {
  padding: 0;
}
.ant-modal-confirm-body .ant-modal-confirm-title {
  height: 50px;
  line-height: 50px;
  background: #fbfbfb;
  box-shadow: inset 0px -1px 0px 0px #dddddd;
  border-radius: 4px 4px 0px 0px;
  padding-left: 16px;
  font-size: 18px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #222222;
}
.ant-modal-confirm-body .ant-modal-confirm-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #222222;
  line-height: 25px;
  font-family: PingFangSC-Regular, PingFang SC;
  min-height: 158px;
}

.ant-modal-confirm .ant-modal-confirm-btns {
  float: right;
  margin-top: 24px;
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
